﻿using CTP.CRM.Core.Common.Enums;

namespace CTP.CRM.Application.Dtos.Demo
{
    /// <summary>
    /// automapper 复杂转换样例
    /// </summary>
    public class ComplexAutomapperDemoInput
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 操作类型
        /// </summary>
        public OptionType OptionType { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public Gender Gender { get; set; }

        /// <summary>
        /// 用户信息
        /// </summary>
        public UserInfoInput UserInfo { get; set; }

        /// <summary>
        /// 用户角色
        /// </summary>
        public List<UserRoleInput> UserRoleInputList { get; set; }

        /// <summary>
        /// 拓展演示，目前大家共同约定,暂时不使用充血模型
        /// </summary>
        /// <returns></returns>
        public string GetAddress()
        {
            return "辽宁省沈阳市...";
        }

    }

    public class ComplexAutomapperDemoOutput
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public string Gender { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get; set; }

        /// <summary>
        /// qq号码
        /// </summary>
        public string QQ { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 角色编号
        /// </summary>
        public int[] RoleIds { get; set; }
    }



}